Creating a Macro
Description
To create a new macro in the Model Tree:
Select the position in a Declaration Section where the new macro should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Macro and press OK
Enter a name for the new macro
Press
<Enter>
to create the new macro (or press<Esc>
to abort the operation)
The newly created macro is not yet ready for use, because you should at least specify its definition attribute. To modify the attributes of the newly created macro:
Press
<Enter>
or double click on the macro node.
The most commonly used attributes of a macro are discussed below.
ARGUMENTS
: In theARGUMENTS
attribute, you can specify the argument names in terms of which theMACRO
definition can be formulated.DEFINITION
: TheDEFINITION
attribute should contain the replacement text that is substituted when the macro is used in the model text. References to arguments in this definition are replaced with the calling arguments of the macro.
How to …
Learn more about